import type { App } from 'vue'
import Binds from './Binds'
import Inclined from './Inclined'

// 所有组件列表
const components = [
    Binds,
    Inclined
]

// 定义 install 方法
const install = (app: App): void => {

    components.forEach(component => app.component(component.name as string, component))
}

export {
    Binds,
    Inclined
}


const vue = (window as any).Vue;
//环境检测
if (typeof window !== "undefined" && vue) {
    install(vue);
}

const Vue3TextAnimations = {
    install
}

export default Vue3TextAnimations;
